import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/adminUser/login',
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: '/admin/admin/info',
    method: 'get',
    data
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
export function transactionList(data) {
  return request({
    url: '/admin/transaction/list',
    method: 'post',
    data
  })
}

export function transactionEnable(data) {
  return request({
    url: '/admin/transaction/enable/' + data,
    method: 'get'

  })
}

export function transactionCancel(data) {
  return request({
    url: '/admin/transaction/cancel/' + data,
    method: 'get'

  })
}

export function userList(data) {
  return request({
    url: '/admin/app/user/list',
    method: 'post',
    data

  })
}

export function qdbmList(data) {
  return request({
    url: '/admin/config/qdbm/list',
    method: 'post',
    data
  })
}
export function smsCode(data) {
  return request({
    url: '/user/sms/code',
    method: 'post',
    data
  })
}
